//
//  TaplmageView.m
//  MusicPlayer
//
//  Created by lanou on 15/12/2.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "TaplmageView.h"

@implementation TaplmageView

- (instancetype)initWithFrame:(CGRect)frame targer:(id)targer action:(SEL)action {
    self = [super initWithFrame:frame];
    if (self) {
        UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:targer action:action];
        
        [self addGestureRecognizer:tapGesture];
        self.userInteractionEnabled = YES;
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
